/* 登录页面样式 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 153, 255, 0.1), rgba(0,0,0,0) 40%),
    radial-gradient(circle at 50% 60%, rgba(0, 255, 255, 0.06), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(3,16,31,1), rgba(4,22,44,1));
  color: #cfe9ff;
}

/* 3D数字人背景效果 */
.digital-human-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.digital-human-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(255, 0, 255, 0.03) 50%, transparent 70%);
  animation: scanLines 8s linear infinite;
}

@keyframes scanLines {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.hologram-effect {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 400px;
  background: linear-gradient(45deg, 
    rgba(0, 255, 255, 0.1) 0%, 
    rgba(255, 0, 255, 0.1) 50%, 
    rgba(0, 255, 255, 0.1) 100%);
  border-radius: 20px;
  animation: hologramFloat 6s ease-in-out infinite;
  box-shadow: 
    0 0 50px rgba(0, 255, 255, 0.3),
    inset 0 0 50px rgba(255, 0, 255, 0.2);
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 0, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 0, 255, 0.6), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: particleMove 20s linear infinite;
}

@keyframes hologramFloat {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-20px) rotateX(5deg); }
}

@keyframes particleMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

/* 赛博网格与中心波形 */
.cyber-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(20,80,140,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,80,140,0.14) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: center center;
}
.cyber-grid::before{
  content:'';
  position:absolute; left:0; right:0; top:45%; height:2px; opacity:.5;
  background: radial-gradient(circle at center, rgba(120,188,255,.9), rgba(120,188,255,0) 60%);
  filter: blur(1px);
}
.cyber-grid::after{
  content:'';
  position:absolute; left:0; right:0; top:45%; height:140px; pointer-events:none;
  background: repeating-linear-gradient(90deg, rgba(90,168,255,.25) 0 6px, rgba(0,0,0,0) 6px 14px);
  mask: radial-gradient(120px 40px at 50% 50%, #000 60%, transparent 62%);
  animation: waveShift 6s linear infinite;
}
@keyframes waveShift { from { transform: translateX(-40px); } to { transform: translateX(40px);} }

/* 底部流动点阵地形（轻量 CSS 方案） */
.terrain{
  position:absolute; left:-10vw; right:-10vw; bottom:-18vh; height:55vh; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(80,160,255,0.18) 0%, rgba(20,80,200,0.06) 45%, rgba(0,0,0,0) 70%),
    radial-gradient(2px 2px at 20px 30px, rgba(120,188,255,.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(80,160,255,.8), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(120,188,255,.6), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(80,160,255,.6), transparent);
  background-repeat: repeat;
  background-size: 120% 100%, 220px 220px, 220px 220px, 220px 220px, 220px 220px;
  filter: blur(0.2px);
  transform: perspective(700px) rotateX(55deg);
  transform-origin: center bottom;
  animation: terrainDrift 18s linear infinite;
}
@keyframes terrainDrift { from { background-position: 0 0, 0 0, 60px 0, 0 60px, 60px 60px; } to { background-position: 0 0, -220px 0, -160px 0, 0 -220px, -220px -220px; } }

/* 中心扩散波纹 */
.ripples{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:1; pointer-events:none; }
.ripple{ position:absolute; width: 520px; height: 520px; border-radius: 999px; border: 2px solid rgba(120,188,255,.55); box-shadow: 0 0 30px rgba(120,188,255,.25) inset, 0 0 20px rgba(120,188,255,.3); opacity:.55; transform: scale(.6); animation: rippleExpand 4.8s ease-out infinite; }
.ripple.r2{ animation-delay: 1.2s; }
.ripple.r3{ animation-delay: 2.4s; }
@keyframes rippleExpand{
  0%{ transform: scale(.55); opacity:.6; filter: blur(0); }
  70%{ opacity:.15; }
  100%{ transform: scale(1.35); opacity:0; filter: blur(1px); }
}

/* 流星雨（右上 → 左下） */
.meteors{ position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.meteor{
  position:absolute; width:2px; height:2px; border-radius:50%;
  background: rgba(170, 215, 255, .95);
  box-shadow: 0 0 8px rgba(120,188,255,.9), 0 0 18px rgba(120,188,255,.6);
}
.meteor::after{
  content:''; position:absolute; right:-200px; top:0; height:2px; width:200px;
  background: linear-gradient(90deg, rgba(120,188,255,.85), rgba(120,188,255,0));
  filter: blur(.5px);
}
@keyframes meteorFlyRL{
  0%{ transform: translate3d(0,0,0) rotate(-35deg); opacity:0; }
  5%{ opacity:1; }
  100%{ transform: translate3d(-120vw, 80vh, 0) rotate(-35deg); opacity:0; }
}
/* 12 颗远景流星，分布位置/延迟/时长（从右侧进入） */
.meteors .meteor{ top:-6vh; right:-18vw; animation: meteorFlyRL 3.6s linear infinite; }
.meteors .meteor:nth-child(2){ top:2vh; right:-14vw; animation: meteorFlyRL 4.2s linear 0.8s infinite; }
.meteors .meteor:nth-child(3){ top:8vh; right:-24vw; animation: meteorFlyRL 3.8s linear 1.6s infinite; }
.meteors .meteor:nth-child(4){ top:14vh; right:-30vw; animation: meteorFlyRL 4.6s linear 0.4s infinite; }
.meteors .meteor:nth-child(5){ top:18vh; right:-20vw; animation: meteorFlyRL 3.4s linear 1.2s infinite; }
.meteors .meteor:nth-child(6){ top:22vh; right:-16vw; animation: meteorFlyRL 4.0s linear 2.0s infinite; }
.meteors .meteor:nth-child(7){ top:-4vh; right:-34vw; animation: meteorFlyRL 4.8s linear 1.0s infinite; }
.meteors .meteor:nth-child(8){ top:6vh; right:-26vw; animation: meteorFlyRL 3.5s linear .2s infinite; }
.meteors .meteor:nth-child(9){ top:10vh; right:-38vw; animation: meteorFlyRL 4.4s linear 1.4s infinite; }
.meteors .meteor:nth-child(10){ top:12vh; right:-10vw; animation: meteorFlyRL 3.9s linear .6s infinite; }
.meteors .meteor:nth-child(11){ top:16vh; right:-30vw; animation: meteorFlyRL 4.1s linear 2.2s infinite; }
.meteors .meteor:nth-child(12){ top:20vh; right:-24vw; animation: meteorFlyRL 3.7s linear 1.8s infinite; }

/* 近景流星：更粗更亮、速度更快，稀疏出现 */
.meteors .meteor.near{ width:3px; height:3px; box-shadow: 0 0 10px rgba(140,200,255,1), 0 0 26px rgba(120,188,255,.9); right:-8vw; top:6vh; animation: meteorFlyRL 2.8s linear .3s infinite; }
.meteors .meteor.near:nth-last-child(2){ top:12vh; right:-6vw; animation-duration: 2.6s; animation-delay: 1.1s; }
.meteors .meteor.near:nth-last-child(1){ top:18vh; right:-10vw; animation-duration: 2.9s; animation-delay: .6s; }

/* 顶部科幻标题条 */
.login-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.topbar-inner {
  width: 100%; max-width: 1200px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: #9fd0ff;
  letter-spacing: 2px;
  background: linear-gradient(180deg, rgba(10,40,70,.6), rgba(6,24,48,.6));
  border: 1px solid rgba(120,188,255,.35);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 24px rgba(77,158,255,.18);
  margin: 8px 20px 0;
}
.topbar-title { font-size: 18px; font-weight: 600; color:#d6efff; text-shadow:0 0 10px rgba(160,210,255,.35); }

/* 登录卡片 */
.login-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(0, 255, 255, 0.1);
  animation: cardGlow 3s ease-in-out infinite alternate;
}

/* 圆形霓虹面板（参考图中央同心圆） */
.neon-circle {
  border-radius: 999px;
  width: 460px; height: 460px; max-width: 80vw; max-height: 80vw;
  padding: 56px 48px;
  background:
    radial-gradient(circle at center, rgba(0, 50, 100, .45) 0%, rgba(0, 40, 90, .35) 55%, rgba(0,0,0,.5) 62%),
    rgba(12,32,58,.6);
  border: 1px solid rgba(120,188,255,.32);
  display: flex; flex-direction: column; justify-content: center;
}
.neon-circle::before,
.neon-circle::after{
  content: '';
  position: absolute; inset: -12px; border-radius: 999px; pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(0,168,255,.45) 0%, rgba(0,168,255,0) 60%),
    repeating-radial-gradient(circle at center,
      rgba(90,180,255,.35) 0 2px,
      rgba(0,0,0,0) 2px 10px);
  filter: blur(10px);
  animation: rotGlow 8s linear infinite;
}
.neon-circle::after{ inset: -36px; opacity: .35; filter: blur(16px); animation-duration: 12s; }
@keyframes rotGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg);} }

.card-header.minimal{ text-align:center; margin-bottom: 10px; }
.card-header.minimal .login-title{ font-size:26px; margin-bottom: 8px; letter-spacing: 6px; color:#e6f4ff; text-shadow:0 0 14px rgba(120,188,255,.65); }
.card-header.minimal .login-subtitle{ color:#c7e6ff; opacity:.95; margin:0 0 8px; }

/* 表单在圆内居中并收窄 */
.neon-circle .login-form{ max-width: 340px; margin: 0 auto; }

/* 提升表单标签与说明文字对比度 */
.login-form .ant-form-item-label > label { color:#d9efff; font-weight: 500; }

@keyframes cardGlow {
  0% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 255, 255, 0.1); }
  100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 150px rgba(255, 0, 255, 0.2); }
}

.login-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(12,32,58,.78);
  border: 1px solid rgba(120, 188, 255, 0.45);
  border-radius: 12px;
  color: #cfe9ff;
  font-size: 16px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.login-input.ant-input { height: 48px; }
/* AntD 密码框外层包装统一样式 */
.login-input.ant-input-affix-wrapper {
  background: rgba(12,32,58,.78);
  border: 1px solid rgba(120, 188, 255, 0.45);
  border-radius: 12px;
  color: #cfe9ff;
  padding: 0 12px;
  height: 48px;
}
.login-input.ant-input-affix-wrapper:hover,
.login-input.ant-input:hover {
  background: rgba(12,32,58,.78);
  border-color: rgba(140, 208, 255, 0.65);
}
.login-input.ant-input-affix-wrapper-focused,
.login-input.ant-input:focus {
  background: rgba(12,32,58,.78);
  border-color: rgba(140, 208, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(120, 188, 255, 0.25), 0 0 22px rgba(120, 188, 255, 0.35);
}
/* 兼容 :focus-within 场景，确保密码框发光一致 */
.login-input.ant-input-affix-wrapper:focus-within {
  background: rgba(12,32,58,.78);
  border-color: rgba(140, 208, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(120, 188, 255, 0.25), 0 0 22px rgba(120, 188, 255, 0.35);
}
/* 内部真实 input 统一文字与背景 */
.login-input input.ant-input,
.login-input input {
  background: transparent !important;
  color: #cfe9ff;
}
.login-input input::placeholder,
.login-input::placeholder {
  color: rgba(207, 233, 255, 0.75);
}
/* 密码可见性图标颜色 */
.login-input .ant-input-suffix,
.login-input .ant-input-prefix {
  color: rgba(207, 233, 255, 0.8);
}
.login-input:hover {
  /* 背景与默认一致，仅提亮边框，保证一致性 */
  background: rgba(12,32,58,.78);
  border-color: rgba(140, 208, 255, 0.65);
}
.login-input::placeholder {
  /* 统一账户与密码占位符颜色 */
  color: rgba(207, 233, 255, 0.75);
}
.login-input:focus {
  outline: none;
  border-color: rgba(140, 208, 255, 0.9);
  background: rgba(12,32,58,.78);
  box-shadow: 0 0 0 2px rgba(120, 188, 255, 0.25), 0 0 22px rgba(120, 188, 255, 0.35);
}

.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.login-input:focus + .input-glow {
  opacity: 1;
}

/* 错误消息 */
.error-message {
  color: #ff6b6b;
  font-size: 14px;
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 5px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* 登录按钮 */
.login-button {
  width: 100%;
  padding: 16px;
  min-height: 46px;
  background: linear-gradient(180deg, #5fd0ff, #1e88e5);
  border: none;
  border-radius: 12px;
  color: #f3fbff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(120,188,255,.35), 0 10px 30px rgba(79, 195, 255, 0.45);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

/* 登录表单下方提示与链接配色（提高对比度） */
.auth-tip { color:#d9efff; opacity:.95; text-align:right; }
.auth-tip a { color:#7fd0ff; }
.auth-tip a:hover { color:#a3e0ff; }

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 登录页脚 */
.login-footer {
  text-align: center;
}

.user-types {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.user-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.type-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

/* 弹窗样式 */
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.alert-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(0, 255, 255, 0.2);
}

.alert-modal.success {
  border-color: rgba(0, 255, 127, 0.5);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(0, 255, 127, 0.3);
}

.alert-modal.error {
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(255, 107, 107, 0.3);
}

.alert-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: iconPulse 2s ease-in-out infinite;
}

.alert-icon.success {
  color: #00ff7f;
  filter: drop-shadow(0 0 20px rgba(0, 255, 127, 0.5));
}

.alert-icon.error {
  color: #ff6b6b;
  filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5));
}

.alert-title {
  color: #00ffff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.alert-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.alert-button {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.alert-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.alert-button:active {
  transform: translateY(0);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-card {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .user-types {
    flex-direction: column;
    gap: 15px;
  }
  
  .hologram-effect {
    width: 200px;
    height: 300px;
  }
  
  .alert-modal {
    margin: 20px;
    padding: 25px 20px;
  }
  
  .alert-title {
    font-size: 20px;
  }
  
  .alert-message {
    font-size: 14px;
  }
}

